package com.wxproject.demo.Mapper;

import com.wxproject.demo.Entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RoleMapper {
    String getPassword(String username);

    String getRole(String username);

    void updatePassword(String username, String newPassword);

    List<String> getUser();

    void banUser(String username);

    int checkUserBanStatus(String username);

    String getRolePermission(String username);

    String getPermission(String username);

    Integer register(UserEntity userEntity);
}
